package com.youth.userservice.service;

import com.youth.ClientEntity.UserEntity;
import com.youth.commonutils.R;
import com.youth.userservice.entity.UcenterMember;
import com.youth.userservice.entity.vo.LoginVo;
import com.youth.userservice.entity.vo.RegisterVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youth.userservice.entity.vo.SearchObj;

import java.util.HashMap;

/**
 * <p>
 * 会员表 服务类
 * </p>
 *
 * @author huangqicai
 * @since 2022-10-27
 */
public interface UcenterMemberService extends IService<UcenterMember> {

    /*实现用户注册*/
    R userRegister(RegisterVo registerVo);

    /*实现用户登录*/
    String userLogin(LoginVo loginVo);

    /*根据用户id获取用户登录信息*/
    R getLoginInfo(String memberIdByJwtToken);

    /*根据memberId获取member的name(误删-huang)*/
    String ByIdGetName(String memberId);

    /*/*根据memberId获取member的信息(误删-huang)*/
    UserEntity ByIdGetUser(HashMap<String,String> map);

    /*根据用户id和金额去扣减金额-huang-远程*/
    boolean subtractMoney(String userId, String money);

    /*获取用户后台列表信息*/
    R pageList(Long pageNum, Long pageSize, SearchObj searchObj);

    /*根据学生id进行删除，同时删除学生相关信息*/
    R removeStudent(String id);

    /*将学生加入或移除黑名单*/
    R changeDisabledStatus(String id, Boolean isDisabled);

    /*更新学生信息*/
    R updateUserInfo(RegisterVo registerVo);
}
